<?php 
$cek = 0;
foreach($ujian as $row){
	if($row->start){
		$cek++;
	}
}
?>


<div class="portlet-body">
	<div class="row-fluid">
		<a href="<?php  echo base_url();?>user/ujian" class="icon-btn span6">
			<i class="icon-pencil"></i>
			<div>Ikut ujian</div>
			<?php if($cek>0){ echo '<span class="badge badge-important">'.$cek.'</span>'; }?>
		</a>
		<a href="<?php  echo base_url();?>user/laporan" class="icon-btn span6">
			<i class="icon-edit"></i>
			<div>lihat laporan</div>
			
		</a>
		

	</div>

		<div class="row-fluid">

				<a href="<?php  echo base_url();?>user/materi" class="icon-btn span6">
			<i class="icon-download"></i>
			<div>download materi</div>
			
		</a>
		

	</div>
</div>

